<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script type="text/javascript">
	const arr = [100,2,32,6,4,423,2342];
	// 剩余的都放入d
	let [a,b,c,...d] = arr;
	console.log(a,b,c,d);
	
	const demo = (x,y,...z) => {
		console.log(x,y,z);
	}
	
	demo(12,32,3,3,4,56,7,6);
</script>
